import { useReactive } from "ahooks";
import { useModel } from "umi";
import { useEffect } from "react";
import compress from "gql-compress";

const useCreateCategoryCommodities = () => {
    const { graphqlFetch } = useModel("global");

    const state = useReactive({
        createCategoryCommoditiesLoading: false,
        categoryCommodities: [],
    });

    const createCategoryCommodities = async ({ ccUuid, ccUuid }) => {
        state.createCategoryCommoditiesLoading = true;
        // let res = await graphqlFetch({
        //     query,
        //     variables: {},
        // });

        state.createCategoryCommoditiesLoading = false;
        // return res;
    };


    return { ...state, createCategoryCommodities };
};

const query = compress(``);

export default useCreateCategoryCommodities;
